﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangePwdWindow1.aspx.cs" Inherits="PMS.UI.BD.ChangePwdWindow1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>

</head>
<body>
    <form id="form1" runat="server">
    <div class="dialog-content">
        <ul>

            <li>原始密码：<input id="txtPassword" name="pwd" class="easyui-validatebox" data-options="required:true" type="password" style="width: 150px" />
            </li>
            <li>&nbsp;&nbsp;新密码：<input id="txtNewPassword" name="pwd1" class="easyui-validatebox" data-options="required:true" type="password" style="width: 150px" />
            </li>
            <li>重复密码：<input class="easyui-validatebox" name="pwd2" id="txtNewPassword2" type="password" data-options="required:true" style="width: 150px" validtype="equalTo['#txtNewPassword']" />
            </li>
            <li>登录帐号：<input id="txtAccount" name="account" class="easyui-validatebox" value="<%=account %>" style="width: 150px" />
            </li>

        </ul>

    </div>

    <div class="dialog-bottom">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-accept'" onclick="changePwd.Confirm()">确定</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="changePwd.Cancel()">取消</a>
    </div>
    </form>
        <script type="text/javascript">
            var changePwd = {};
            changePwd.Cancel = function () {
                $("#divChangePwd").dialog('close');
            }
            changePwd.Confirm = function () {
                var para = $.extend(com.serializeObj("form1"), { method: "ChangePwd" });
                if ($("#form1").form("validate")) {
                    com.ajax({
                        type: "POST",
                        url: "/Logic/BD/ChangePwdAjax.aspx",
                        data: para,
                        success: function (data) {
                            com.message(data.state, data.msg);
                            $("#divChangePwd").dialog('close');
                        }
                    });
                }
            }
</script>
</body>
</html>
